<%@ page import="ygflower.controller.ListFlowerController" %>
<%@ page import="java.util.List" %>
<%@ page import="ygflower.domain.Flower" %>
<%--
  Created by IntelliJ IDEA.
  User: lee
  Date: 2010-2-2
  Time: 22:04:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@page import="ygflower.domain.User"%><html>
  <head><title>产品 jsp page</title></head>
  <body>
  <table>
  
  <%User user= (User)session.getAttribute(User.CLASSNAME);
      List<Flower> list = (List) request.getAttribute(ListFlowerController.viewFlower);
  	  if(list == null || list.size() == 0){
  %>
      <h3>没有产品</h3><%=(user==null?"":user.getName()) %>
  		  <%
  		  return ;
  	  }
      for (Flower flower:list){
 %>
      <tr>
          <td>
              <%=flower.getName()%>  <%=flower.getMarketPrice()%>
          </td>
      </tr>
  <%
      }
  %>
     </table>
  </body>
</html>